﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administracao/MasterPage/Admin.Master" AutoEventWireup="true" CodeBehind="Banner.aspx.cs" Inherits="ByBikeShop.Administracao.Pages.Banner" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <link href="../Styles/cssBanner.min.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <article class="articleErro">
	<asp:Label runat="server" ID="lblErro" CssClass="labelError"></asp:Label>
  </article>
  <section id="sectionBanner">
	<article id="articleAdicionar">
	  Adicionar foto
	  <asp:FileUpload runat="server" ID="fupBanner" />
	  <asp:Button runat="server" ID="btnEnviar" Text="Enviar" OnClick="btnEnviar_Click" />
	</article>

	<asp:GridView runat="server" ID="grdBanners" GridLines="None" AutoGenerateColumns="False" ShowHeader="false"
	  OnRowDataBound="grdBanners_RowDataBound" OnRowCommand="grdBanners_RowCommand" >
		<Columns>
			<asp:TemplateField>
				<ItemTemplate>
					<asp:ImageButton runat="server" ID="btnDeletar" CommandArgument='<%# Eval("ID") %>' ImageUrl="~/Imagens/Icones/delete.svg" Height="40" />
					<asp:ImageButton runat="server" ID="btnUp" CommandArgument='<%# Eval("ID") %>' ImageUrl="~/Imagens/Icones/up.svg" Height="40" />
					<asp:ImageButton runat="server" ID="btnDown" CommandArgument='<%# Eval("ID") %>' ImageUrl="~/Imagens/Icones/down.svg" Height="40" />
				</ItemTemplate>
			</asp:TemplateField>
			<asp:ImageField DataImageUrlField="Imagem_Url" ItemStyle-Width="500"></asp:ImageField>
			<asp:TemplateField>
				<ItemTemplate>
					<asp:ImageButton runat="server" ID="btnAtivo" CommandArgument='<%# Eval("ID") %>' OnCommand="btnAtivo_Command" />
				</ItemTemplate>
			</asp:TemplateField>
		</Columns>
	</asp:GridView>
  </section>
</asp:Content>
